package com.sinog.biz.service.api;

import com.sinog.core.utilbean.Result;
import org.dom4j.DocumentException;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.xml.sax.SAXException;
import java.util.Map;

/**
 * @desc 前置机上传zip包监听接口service
 * @author - lzq
 * @date -
 */
@RestController
public interface XmlMinitoringService {

    /**
     * 前置机上传zip包监听接口service
     * @param zipName zip包名称
     * @return Result
     * @throws DocumentException
     * @throws SAXException
     */
    @PostMapping("/transmission/api/azbj/xml/monitoring")
    Result monitoring(@RequestParam String zipName) throws DocumentException, SAXException;

    /**
     * 0702B、0702HZ流程
     * @param hzParams map
     * @return Result
     */
    @PostMapping("/transmission/api/azbj/xml/processOut")
    Result processOut(@RequestParam Map<String, String> hzParams);

    /**
     * 0702A,0702C,0702D接收,签收流程
     * @param hzMap hzMap
     */
    void makeFile(@RequestParam Map<String, String> hzMap);
}